
import axios from './axios'

// 查询尺码数据
export function getSize(params={limit: 9999}){
  return axios({
    url:'/size/list',
    params
  })
}

// 获取所有尺码种类
export function getSizeType(){
  return axios({
    url:'/size/getSizeType'
  })
}

// 查询尺码详情数据
export function getSizeInfo(){
  return axios({
    url:'/sizeInfo-info/list'
  })
}

export function postSize(params){
  return axios({
    method:'post',
    url:'/size/insert',
    params
  })
}
export function putSize(params){
  return axios({
    method:'put',
    url:'/size/update',
    params
  })
}
export function deleteSize(params){
  return axios({
    method:'delete',
    url:'/size/delete',
    params
  })
}


// //号型
// export function getHX(params){
//   return axios({
//     url:'/number-style/getList',
//     params
//   })
// }
//号型 新增
export function putHX(data){
  return axios({
    method:'put',
    // url:'/size/updateAll',
    url:'/size-number-type/update',
    data
  })
}

//获取 号型
export function getHX1(params){
  return axios({
    url:'/size-number-type/all',
    params
  })
}